package com.reggie.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

//购物车实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCart implements Serializable {
    private static final long serialVersionUID = 1L;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;//id主键
    private String name;//名称
    private String image;//图片
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;//顾客id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long dishId;//菜品id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long setmealId;//套餐id
    private String dishFlavor;//口味
    private Integer number;//数量
    private Double amount;//金额
    private LocalDateTime createTime;//创建时间
}
